package com.pet.bean;

import java.io.Serializable;
import java.util.Date;

public class Account implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer a_id;
    private Integer sale_id;
    private Integer buy_id;
    private Integer type;
    private Date order_date;
    private double price;
    private Integer pet_id;

    public Account(Integer a_id, Integer sale_id, Integer buy_id, Integer type, Date order_date, double price, Integer pet_id) {
        this.a_id = a_id;
        this.sale_id = sale_id;
        this.buy_id = buy_id;
        this.type = type;
        this.order_date = order_date;
        this.price = price;
        this.pet_id = pet_id;
    }
    public Account(Integer sale_id, Integer buy_id, Integer type, Date order_date, double price, Integer pet_id) {
        this.sale_id = sale_id;
        this.buy_id = buy_id;
        this.type = type;
        this.order_date = order_date;
        this.price = price;
        this.pet_id = pet_id;
    }
    public Account() {
    }

    public Integer getPet_id() {
        return pet_id;
    }

    public void setPet_id(Integer pet_id) {
        this.pet_id = pet_id;
    }

    public Integer getA_id() {
        return a_id;
    }

    public void setA_id(Integer a_id) {
        this.a_id = a_id;
    }

    public Integer getSale_id() {
        return sale_id;
    }

    public void setSale_id(Integer sale_id) {
        this.sale_id = sale_id;
    }

    public Integer getBuy_id() {
        return buy_id;
    }

    public void setBuy_id(Integer buy_id) {
        this.buy_id = buy_id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getOrder_date() {
        return order_date;
    }

    public void setOrder_date(Date order_date) {
        this.order_date = order_date;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Account{" +
                "a_id=" + a_id +
                ", sale_id=" + sale_id +
                ", buy_id=" + buy_id +
                ", type=" + type +
                ", order_date=" + order_date +
                ", price=" + price +
                ", pet_id=" + pet_id +
                '}';
    }
}
